package com.brick.service;

import com.brick.entity.Order;
import com.brick.mapper.OrderMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderService {
    @Autowired
    OrderMapper orderMapper;

    public List<Order> selectAll(Order order){
        return orderMapper.selectAll(order);
    }

    public int insert(Order order){
        return orderMapper.insert(order);
    }

    public int update(Order order){
        return orderMapper.update(order);
    }
}
